<!--测试指令-->

<div class="demo-modal" id="addAdmin">
	<div class="modal-header">
		<h4 class="modal-title" id="modal-title">
			添加管理员
			<i class="icon icon-guanbi2" ng-click="cancel()"></i>
		</h4>
	</div>
	<div class="modal-body addAdmin" id="modal-body">
		<div class="addItem">
			<div class="addItem-head">
				<span>*</span>
				选择所属管理组
			</div>
			<div class="line-block filed">
		        <ui-select ng-model="addAdmin.roleId">
		            <ui-option  ng-repeat="i in guanLiZuList" value="i.id">{{i.roleName}}</ui-option>
		        </ui-select>
		    </div>
		</div>
		<div class="addItem">
			<div class="addItem-head">
				<!--<span>*</span>-->
				真实姓名
			</div>
			<div class="addItem-content">
				<input type="text" ng-model="addAdmin.realname" 
					ng-class="{'error':realname}"
					class="form-control" />
			</div>
		</div>
		<div class="addItem">
			<div class="addItem-head">
				<span>*</span>
				手机号码
			</div>
			<div class="addItem-content">
				<input type="text"  ng-model="addAdmin.telephone" 
					ng-class="{'error':telephone}"
					class="form-control"/>
			</div>
		</div>
		<div class="addItem">
			<div class="addItem-head">
				<span>*</span>
				密码
			</div>
			<div class="addItem-content">
				<input type="password"  ng-model="addAdmin.password" 
					ng-class="{'error':password}"
					class="form-control"/>
			</div>
		</div>
		<div class="addItem">
			<div class="addItem-head">
				<!--<span>*</span>-->
				邮箱地址
			</div>
			<div class="addItem-content">
				<input type="text" ng-model="addAdmin.mail" 
					ng-class="{'error':mail}"
					class="form-control"/>
			</div>
		</div>
	</div>
	<div class="modal-footer">
		<button class="btn btn-primary" type="button" ng-click="tiJiao1()">确定添加</button>
		<!--<button class="btn btn-warning" type="button" ng-click="cancel()">取消</button>-->
	</div>
</div>